using UnityEngine;
using UnityEngine.UI;

namespace PKGames.Localization
{
	[RequireComponent(typeof(Text))]
	public class TextLocalization : MonoBehaviour
	{
		[SerializeField]
		private LocalizedText _key;

		private void Awake()
		{
			base.gameObject.GetComponent<Text>().text = _key.Value;
		}
	}
}
